package com.nifostasky.config;

import com.nifostasky.filter.CustomZuulFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {
    /**
     * 将自定义过滤器注入到应用中
     */
    @Bean
    public CustomZuulFilter preRequestLogFilter(){
        return new CustomZuulFilter();
    }
}
